IPClearInterfaceStat


C Specification

#include <dolphin/ip.h>

typedef struct IPInterfaceStat  IPInterfaceStat;

struct IPInterfaceStat
{
    u32             inUcastPackets;     // Input unicast packets
    u32             inNonUcastPackets;  // Input broadcast or multicast packets
    u32             inDiscards;         // Input dropped due to ins. resources
    u32             inErrors;           // Packets dropped on input
    u32             outUcastPackets;    // Output unicast packets
    u32             outNonUcastPackets; // Output broadcast or multicast packets
    u32             outDiscards;        // Output dropped due to ins. resources
    u32             outErrors;          // Output errors
    u32             outCollisions;      // Collisions on CSMA
};

void IPClearInterfaceStat( IPInterface* interface );

Description

IPClearInterfaceStat() resets the statistics collected in the specified network interface.

Arguments

interface Pointer to IPInterface to clear the statistics. Use NULL to specify the default network interface.

Return Values

None.

See Also

IPGetInterfaceStat(), IPInterfaceStat